package com.blb.dao.user;

import com.blb.pojo.User;

import java.sql.SQLException;

public interface UserDao {

    /**
     * 添加用户
     * @param user
     * @throws SQLException
     * @throws ClassNotFoundException
     */
    void register(User user) throws SQLException, ClassNotFoundException;

    /**
     * 更具name查询pass
     * @param name
     * @return
     * @throws Exception
     */
    User selectByName(String name) throws Exception;

}
